package com.jta.dao.intf;

import org.hibernate.criterion.DetachedCriteria;

import java.io.Serializable;
import java.util.List;

public interface IBaseDao {
    public List findAll(String hql) throws Exception;
    public List query(String hql,Object value) throws Exception;
    public <T> Serializable save(T entity) throws Exception;
    public <T> List find(DetachedCriteria detachedCriteria) throws Exception;
}
